package com.tedu.egmvcboot.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserLoginDTO {
    //@Pattern(regexp = "^[\\u4e00-\\u9fa5a-zA-Z0-9_]{2,11}$",message = "用户名必须为2-11位的字母,数字,中文，下划线")
    @NotBlank
    @ApiModelProperty(value = "用户名", required = true,example = "奥特曼")
    private String username;
    @NotBlank
    @ApiModelProperty(value = "密码", required = true,example = "123aaa")
    private String password;

}
